package com.h3c.ptability.dto;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtRoleCaculateDTO
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_role_caculate dto实体
 * Version: 1.0
 */
@ApiModel(value="PtRoleCaculate对象", description="")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PtRoleCaculateDTO {


    @ApiModelProperty(value = "动态角色计算规则ID")
    private String ruleId;

    @ApiModelProperty(value = "规则名称")
    private String ruleName;

    @ApiModelProperty(value = "应用ID")
    private String appId;

    @ApiModelProperty(value = "计算方法:1 sql;2 api;")
    private Integer caculateType;

    @ApiModelProperty(value = "计算规则配置值")
    private String caculateContent;

    @ApiModelProperty(value = "结果匹配角色规则JSON字符串")
    private String resultMatchRule;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String creatorId;

    /**
     * 排序字段 + 升序， -降序
     * 比如 +updateTime 根据 修改时间升序排序，-updateTime 根据 修改时间降序排序
     */
    private String orderBy;

}
